package com.example.yixueban.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.example.yixueban.mapper.GradeMapper;
import java.util.List;
import com.example.yixueban.domain.Grade;
import com.example.yixueban.domain.GradeExample;
import com.example.yixueban.service_interface.GradeService;

/**
 * User: Wang YiHan
 * Date: 2021/8/5 22:01
 * Email: 783096044@qq.com
 * File_Name: GradeServiceImpl
**/
@Service
public class GradeServiceImpl implements GradeService{

    @Resource
    private GradeMapper gradeMapper;

    @Override
    public long countByExample(GradeExample example) {
        return gradeMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(GradeExample example) {
        return gradeMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer gradeId) {
        return gradeMapper.deleteByPrimaryKey(gradeId);
    }

    @Override
    public int insert(Grade record) {
        return gradeMapper.insert(record);
    }

    @Override
    public int insertSelective(Grade record) {
        return gradeMapper.insertSelective(record);
    }

    @Override
    public List<Grade> selectByExample(GradeExample example) {
        return gradeMapper.selectByExample(example);
    }

    @Override
    public Grade selectByPrimaryKey(Integer gradeId) {
        return gradeMapper.selectByPrimaryKey(gradeId);
    }

    @Override
    public int updateByExampleSelective(Grade record,GradeExample example) {
        return gradeMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Grade record,GradeExample example) {
        return gradeMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Grade record) {
        return gradeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Grade record) {
        return gradeMapper.updateByPrimaryKey(record);
    }

}
